package org.wzl.todolisthelper.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Builder;
import lombok.Data;

/**
 * 
 * @TableName t_user
 */
@TableName(value ="t_user")
@Data
@Builder
public class User implements Serializable {
    /**
     * id
     */
    @TableId(value = "id")
    private String id;

    /**
     * 微信id
     */
    @TableField(value = "wx_id")
    private String wxId;

    /**
     * 昵称
     */
    @TableField(value = "nickname")
    private String nickname;

    /**
     * 图片地址
     */
    @TableField(value = "avatar")
    private String avatar;

    /**
     * 电话号码
     */
    @TableField(value = "phone")
    private String phone;

    /**
     *
     */
    @TableField(fill= FieldFill.INSERT)
    private LocalDateTime createDate;

    /**
     *
     */
    @TableField(fill= FieldFill.INSERT_UPDATE)
    private LocalDateTime updateDate;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}